home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4154 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. Path: solaris.cc.vt.edu!not-for-mail
  2. From: bicknell@ussenterprise.ufp.org (Leo Bicknell)
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Re: Performance: C vs. C++
  5. Date: 28 Jan 1996 10:07:22 -0500
  6. Organization: From the bridge of the U.S.S. Enterprise, NCC-1701D
  7. Message-ID: <4eg3fa$k7q@ussenterprise.ufp.org>
  8. References: <30F6BAAC.12B5@iastate.edu> <4da9pn$a45@news.bridge.net> <4dnpl2$c8g@classic.iinet.com.au> <3105E9DC.1BE3@enermet.fi>
  9. Reply-To: bicknell@ufp.org
  10. NNTP-Posting-Host: ussenterprise.ufp.org
  11. NNTP-Posting-User: bicknell
  12.  
  13. In article <3105E9DC.1BE3@enermet.fi>,
  14. Harri Halttunen  <Harri.Halttunen@enermet.fi> wrote:
  15. >All that is true (at least in the some point of view), but we have to remember 
  16. >that usually in real applications this kind of comparison doesn't matter. This 
  17. >is because fetching something from a database or file takes many times longer 
  18. >than, for example, a virtual function call or to handle an excepion. Or even 
  19. >check a type of an object at runtime.
  20.  
  21.     Ah, the microsoft design attitude.  It's ok if the program
  22. has to come on 12 CDROMs because the source is more readable.  Not that
  23. I advocate it, but if all programs were written by really tallented
  24. assembly language programmers we could have all the functionality
  25. an speed of Windows 95 on a P90 with a 386/25.
  26.  
  27.     I recently ran into this here with a little server application.
  28. It was rewritten in C++ to add some features over the C version, and
  29. to make it easier to maintain.  Now people are noticing that when this
  30. program is being run 30 times a second on our server the little
  31. extra overhead in both memory usage and processor time add up quickly.
  32.  
  33.     It all makes a difference, a big on.
  34.  
  35. -- 
  36. Leo Bicknell - TMBG List Admin - tmbg-list-request@tmbg.org
  37.          System Administrator / Network Technician
  38.   bicknell@ufp.org - bicknell@vt.edu - bicknell@tmbg.org
  39.